#! /bin/bash
nmcli c up AUST_Student >/dev/null
ping -c 1 8.8.8.8 >/dev/null
if [ $? -eq 1 ]; then
	echo "ready to conntct AUSTnetwork,please wait..."
	curl http://10.255.0.19/drcom/login?callback=dr1003\&DDDDD=账号%40unicom\&upass=密码\&0MKKey=123456 >/dev/null
	echo "Connection successful!"
else
	echo "AUSTnetwork has being connected "
fi

ip=`hostname -I`
echo "Your equipment ip is: $ip"


